<?php
/*
 *  FireFly theme
 *  Footer template
 *  (c) 2011, chugylo
 */
?>
    <div id="footer">
        <div id="footer-columns">
            <?php if (!dynamic_sidebar('footer-widget-area')) : ?>
            <div class="footer-column">
                <h3><?php _e('Blogroll', 'firefly'); ?></h3>
                <ul>
                    <?php wp_list_bookmarks(array('categorize'=>0, 'title_li'=>0)); ?>
                </ul>
            </div>
            <?php if (function_exists('the_related') && is_singular() && !is_page()) : ?>
            <div class="footer-column">
                <h3><?php _e('Related posts', 'firefly'); ?></h3>
                <?php the_related(); ?>
            </div>
            <?php endif; endif;  // end footer-widget-area ?>
        </div>
        <div id="copyright-notes">
            &copy;<?php copyright_years(); echo ', '; copyright_name(); // see firefly.ini for change ?><br />
            <?php _e('Powered by', 'firefly'); ?> <a href="http://wordpress.org/" target="_blank">Wordpress</a><br />
            <?php _e('Theme:', 'firefly'); ?> <a href="http://code.google.com/p/firefly-theme/">FireFly</a> <?php firefly_version(); ?> <?php _e('by', 'firefly'); ?> <a href="http://chugylo.org.ua" target="_blank">chugylo</a>
        </div>
        <?php  // show performance for registered users
        if (is_user_logged_in()) : ?>
        <div id="used-resources">
        <?php
            printf(__('Loaded in %s sec', 'firefly'), timer_stop());
            echo ' | ';
            printf(__('MySQL Queries: %s', 'firefly'), get_num_queries());
            echo ' | ';
            printf(__('Peak memory usage: %sMiB', 'firefly'), sprintf('%.2f', memory_get_peak_usage()/1024/1024));
        endif; ?>
        </div>
    </div>
    </div><!--end wraper-->
    <?php wp_footer(); ?>
</body>
</html>
